C code for PEDiscardSavedData and PEHasSavedData

The following code demonstrates how to check with the PEHasSavedData function to see if a report contains saved data and, if so, how to discard the saved data using the PEDiscardSavedData function:

BOOL        hasSavedData;
if (!PEHasSavedData(Job, &hasSavedData)){
    // Handle error
}
if (hasSavedData){
    // does the report have saved data?
    if (!PEDiscardSavedData(Job)){
        // Handle error
    }
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com